Skip to content

refactor(backfill): Use of PBJ gRPC Client Helidon instead of Vanilla Helidon. #1499

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Aug 19, 2025

Conversation

AlfredoG87
Copy link
Contributor

@AlfredoG87 AlfredoG87 commented Aug 15, 2025

Reviewer Notes

  • Refactored the BlockNodeClient to use PBJ gRPC Client Helidon, instead of Vanilla Helidon.

  • On the case of BlockStreamSubscribe I also refactored the custom client to use PBJ but with Unparsed response Codec.

Related Issue(s)

Fixes #1434
Fixes #1500
Fixes #1486

@AlfredoG87 AlfredoG87 changed the title Pbj grpc client refactor(backfill): Use of PBJ gRPC Client Helidon instead of Vanilla Helidon. Aug 15, 2025
@AlfredoG87 AlfredoG87 added this to the 0.17.0 milestone Aug 15, 2025
@AlfredoG87 AlfredoG87 added Block Node Issues/PR related to the Block Node. Improvement Code changes driven by non business requirements labels Aug 15, 2025
@AlfredoG87 AlfredoG87 self-assigned this Aug 15, 2025
@AlfredoG87 AlfredoG87 marked this pull request as ready for review August 15, 2025 19:52
@AlfredoG87 AlfredoG87 requested review from a team as code owners August 15, 2025 19:52
@AlfredoG87 AlfredoG87 mentioned this pull request Aug 15, 2025
20 tasks
@AlfredoG87 AlfredoG87 force-pushed the pbj-grpc-client branch 4 times, most recently from 7acc99e to d918b87 Compare August 16, 2025 17:26
Copy link
Contributor

@ata-nas ata-nas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AlfredoG87 good job! Some general questions

Copy link
Contributor

@jsync-swirlds jsync-swirlds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few concerns.
Mostly these can be addressed in follow-up if needed.

…d of Vanilla Helidon.

On the case of BlockStreamSubscribe I also refactored the custom client to use PBJ but with Unparsed response Codec.

Signed-off-by: Alfredo Gutierrez Grajeda <alfredo@hashgraph.com>
removing vestigial class that is no longer used

Signed-off-by: Alfredo Gutierrez Grajeda <alfredo@hashgraph.com>
…g misleading log

removing unneeded modules

Signed-off-by: Alfredo Gutierrez Grajeda <alfredo@hashgraph.com>
…nd Autonomous at the same time, found out that the connection to initiate a batch request most happen synchronously, so On-Demand should only have to wait for the current batch to be fetched before starting.

Signed-off-by: Alfredo Gutierrez Grajeda <alfredo@hashgraph.com>
Signed-off-by: Alfredo Gutierrez Grajeda <alfredo@hashgraph.com>
Signed-off-by: Alfredo Gutierrez Grajeda <alfredo@hashgraph.com>
Signed-off-by: Alfredo Gutierrez Grajeda <alfredo@hashgraph.com>
@AlfredoG87 AlfredoG87 merged commit 2f32ab9 into main Aug 19, 2025
13 of 15 checks passed
@AlfredoG87 AlfredoG87 deleted the pbj-grpc-client branch August 19, 2025 17:48
Copy link

codecov bot commented Aug 19, 2025

Codecov Report

❌ Patch coverage is 73.27586% with 31 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...ill/client/BlockStreamSubscribeUnparsedClient.java 61.03% 23 Missing and 7 partials ⚠️
.../org/hiero/block/node/backfill/BackfillPlugin.java 90.90% 0 Missing and 1 partial ⚠️

❌ Your patch status has failed because the patch coverage (73.27%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

@@             Coverage Diff              @@
##               main    #1499      +/-   ##
============================================
+ Coverage     81.01%   81.15%   +0.13%     
  Complexity     1110     1110              
============================================
  Files           123      122       -1     
  Lines          5121     5072      -49     
  Branches        535      529       -6     
============================================
- Hits           4149     4116      -33     
+ Misses          726      719       -7     
+ Partials        246      237       -9     
Files with missing lines Coverage Δ Complexity Δ
...ero/block/node/backfill/BackfillConfiguration.java 100.00% <ø> (ø) 1.00 <0.00> (ø)
.../hiero/block/node/backfill/BackfillGrpcClient.java 94.87% <100.00%> (+6.87%) 16.00 <4.00> (+2.00)
...ro/block/node/backfill/client/BlockNodeClient.java 100.00% <100.00%> (ø) 4.00 <4.00> (+1.00)
.../org/hiero/block/node/backfill/BackfillPlugin.java 73.55% <90.90%> (+0.67%) 36.00 <0.00> (+5.00)
...ill/client/BlockStreamSubscribeUnparsedClient.java 61.03% <61.03%> (ø) 4.00 <4.00> (?)

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Block Node Issues/PR related to the Block Node. Improvement Code changes driven by non business requirements
Projects
None yet
3 participants